﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using BUS_QLMayMac;

namespace GiaoDien_QLMayMac
{
    public partial class GiaoDienGioiThieuCongTy : Form
    {
        public GiaoDienGioiThieuCongTy()
        {
            InitializeComponent();
        }
        private void GiaoDienGioiThieuCongTy_Load(object sender, EventArgs e)
        {
        }
        void t_Disposed(object sender, EventArgs e)
        {
            lbKetNoiCSDL.Text = "*";
        }


        private void picKetNoiCSDL_Click(object sender, EventArgs e)
        {
            try
            {
                BUS_QLMayMac.KetNoiCSDL.BUS_KetNoiCSDL();
                lbKetNoiCSDL.Text = "Kết nối cơ sở dữ liệu thành công.";
            }
            catch (Exception ex)
            {
                lbKetNoiCSDL.Text ="Kết nối CSDL không thành công"+"\n"+"-> " + ex.Message;
            }

        }
        private void picKetNoiCSDL_MouseLeave(object sender, EventArgs e)
        {
             lbKetNoiCSDL.Text = "*"; 
        }
    }
}